package com.wy.seekbar;

import android.os.Bundle;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    private SeekBar seekBar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        seekBar = findViewById(R.id.seekBar);
        seekBar.setSelectLisentering(new SeekBar.AbcSelect() {
            @Override
            public void select(String abc) {
                Toast.makeText(MainActivity.this, "abc:" + abc, Toast.LENGTH_SHORT).show();
            }
        });
    }
}